﻿* Encoding: UTF-8.
*Recoding dummies for models

RECODE edqual (1=1) (2 thru 6=0) (else=99)  INTO edqualdum1.
EXECUTE.
RECODE edqual (1=0) (2=1) (3 thru 6=0) (else=99)  INTO edqualdum2.
EXECUTE.
RECODE edqual (1 thru 2=0) (3=1) (4 thru 6=0) (else=99)  INTO edqualdum3.
EXECUTE.
RECODE edqual (1 thru 3=0) (4=1) (5 thru 6=0) (else=99)  INTO edqualdum4.
EXECUTE.
RECODE edqual (1 thru 4=0) (5=1) (6=0) (else=99)  INTO edqualdum5.
EXECUTE.

RECODE race1 (1=1) (2 thru 4=0) (else=99)  INTO racedum1.
EXECUTE.
RECODE race1 (1=0) (2=1) (3 thru 4=0) (else=99)  INTO racedum2.
EXECUTE.
RECODE race1 (1 thru 2=0) (3=1) (4=0) (else=99)  INTO racedum3.
EXECUTE.

RECODE HHincome1 (0=1) (1 thru 5=0) (else=99)  INTO incomedum0.
EXECUTE.
RECODE HHincome1 (0=0) (1=1) (2 thru 5=0) (else=99)  INTO incomedum1.
EXECUTE.
RECODE HHincome1 (0 thru 1=0) (2=1) (3 thru 5=0) (else=99)  INTO incomedum2.
EXECUTE.
RECODE HHincome1 (0 thru 2=0) (3=1) (4 thru 5=0) (else=99)  INTO incomedum3.
EXECUTE.
RECODE HHincome1 (0 thru 3=0) (4=1) (5=0) (else=99)  INTO incomedum4.
EXECUTE.

RECODE chattend (1=1) (2 thru 4=0) (else=99)  INTO chattenddum1.
EXECUTE.
RECODE chattend (1=0) (2=1) (3 thru 4=0) (else=99)  INTO chattenddum2.
EXECUTE.
RECODE chattend (1 thru 2=0) (3=1) (4=0) (else=99)  INTO chattenddum3.
EXECUTE.

RECODE tu (0=1) (1 thru 3=0) (else=99)  INTO tudum0.
EXECUTE.
RECODE tu (0=0)  (1=1) (2 thru 3=0) (else=99)  INTO tudum1.
EXECUTE.
RECODE tu (0 thru 1=0) (2=1) (3=0) (else=99)  INTO tudum2.
EXECUTE.

RECODE sclass1 (0=1) (1 thru 7=0) (else=99)  INTO sclass1dum0.
EXECUTE.
RECODE sclass1 (0=0) (1=1) (2 thru 7=0) (else=99)  INTO sclass1dum1.
EXECUTE.
RECODE sclass1 (0 thru 1=0) (2=1) (3 thru 7=0) (else=99)  INTO sclass1dum2.
EXECUTE.
RECODE sclass1 (0 thru 2=0) (3=1) (4 thru 7=0) (else=99)  INTO sclass1dum3.
EXECUTE.
RECODE sclass1 (0 thru 3=0) (4=1) (5 thru 7=0) (else=99)  INTO sclass1dum4.
EXECUTE.
RECODE sclass1 (0 thru 4=0) (5=1) (6 thru 7=0) (else=99)  INTO sclass1dum5.
EXECUTE.
RECODE sclass1 (0 thru 5=0) (6=1) (7=0) (else=99)  INTO sclass1dum6.
EXECUTE.

RECODE Eurefid2w2 (1=1) (2 thru 3=0) (else=99)  INTO eurefid2w2dum1.
EXECUTE.
RECODE Eurefid2w2 (1=0) (2=1) (3=0) (else=99)  INTO eurefid2w2dum2.
EXECUTE.

RECODE partyid2W2 (1=1) (2 thru 3=0) (else=99)  INTO partyid2W2dum1.
EXECUTE.
RECODE partyid2W2 (1=0) (2=1) (3=0) (else=99)  INTO partyid2W2dum2.
EXECUTE.

RECODE Eurefid2 (1=1) (2 thru 3=0) (else=99)  INTO eurefid2dum1.
EXECUTE.
RECODE Eurefid2 (1=0) (2=1) (3=0) (else=99)  INTO eurefid2dum2.
EXECUTE.

RECODE partyid2 (1=1) (2 thru 3=0) (else=99)  INTO partyid2dum1.
EXECUTE.
RECODE partyid2 (1=0) (2=1) (3=0) (else=99)  INTO partyid2dum2.
EXECUTE.

*Appendix 1

USE ALL.
COMPUTE filter_$=(Wave1 = 1).
FILTER BY filter_$.
EXECUTE.

FREQUENCIES VARIABLES=partyid2W2 eurefid2W2
  /ORDER=ANALYSIS.

CROSSTABS
  /TABLES=partyid2W2 BY eurefid2W2
  /FORMAT=AVALUE TABLES
  /CELLS=TOTAL
  /COUNT ROUND CELL.

*Appendix 2

USE ALL.
COMPUTE filter_$=(Wave1 = 1 & partyid2w2<4).
FILTER BY filter_$.
EXECUTE.

DESCRIPTIVES VARIABLES=PIDattachAllW2 PIDInW2 PIDNegAllW2 PIDOutW2  
  /STATISTICS=MEAN STDDEV.

USE ALL.
COMPUTE filter_$=(Wave1 = 1).
FILTER BY filter_$.
EXECUTE.

DESCRIPTIVES VARIABLES=BrexattachAllW2 BrexInW2 BrexOutW2    
  /STATISTICS=MEAN STDDEV.

USE ALL.
COMPUTE filter_$=(Wave1 = 1).
FILTER BY filter_$.
EXECUTE.

FACTOR
  /VARIABLES Brex3d_1_Wave2 Brex3d_2_Wave2 Brex3d_3_Wave2 Brex3d_4_Wave2 Brex3d_5_Wave2
  /MISSING LISTWISE 
  /ANALYSIS Brex3d_1_Wave2 Brex3d_2_Wave2 Brex3d_3_Wave2 Brex3d_4_Wave2 Brex3d_5_Wave2
  /PRINT INITIAL EXTRACTION ROTATION
  /CRITERIA MINEIGEN(1) ITERATE(25)
  /EXTRACTION ML
  /CRITERIA ITERATE(25)
  /ROTATION VARIMAX.
FACTOR
  /VARIABLES Brex4_1_Wave2 Brex4_2_Wave2 Brex4_3_Wave2 Brex4_4_Wave2 Brex4_5_Wave2
  /MISSING LISTWISE 
  /ANALYSIS Brex4_1_Wave2 Brex4_2_Wave2 Brex4_3_Wave2 Brex4_4_Wave2 Brex4_5_Wave2
  /PRINT INITIAL EXTRACTION ROTATION
  /CRITERIA MINEIGEN(1) ITERATE(25)
  /EXTRACTION ML
  /CRITERIA ITERATE(25)
  /ROTATION VARIMAX.

USE ALL.
COMPUTE filter_$=(Wave1 = 1 & partyid2w2<4).
FILTER BY filter_$.
EXECUTE.

FACTOR
  /VARIABLES pidGRID_1_Wave2 pidGRID_2_Wave2 pidGRID_3_Wave2 pidGRID_4_Wave2 pidGRID_5_Wave2 
  /MISSING LISTWISE 
  /ANALYSIS pidGRID_1_Wave2 pidGRID_2_Wave2 pidGRID_3_Wave2 pidGRID_4_Wave2 pidGRID_5_Wave2 
  /PRINT INITIAL EXTRACTION ROTATION
  /CRITERIA MINEIGEN(1) ITERATE(25)
  /EXTRACTION ML
  /CRITERIA ITERATE(25)
  /ROTATION VARIMAX.
FACTOR
  /VARIABLES pidGRID3_1_Wave2 pidGRID3_2_Wave2 pidGRID3_3_Wave2 pidGRID3_4_Wave2 pidGRID3_5_Wave2 
  /MISSING LISTWISE 
  /ANALYSIS pidGRID3_1_Wave2 pidGRID3_2_Wave2 pidGRID3_3_Wave2 pidGRID3_4_Wave2 pidGRID3_5_Wave2 
  /PRINT INITIAL EXTRACTION ROTATION
  /CRITERIA MINEIGEN(1) ITERATE(25)
  /EXTRACTION ML
  /CRITERIA ITERATE(25)
  /ROTATION VARIMAX.
FACTOR
  /VARIABLES pidGRID2_1_Wave2 pidGRID2_2_Wave2 pidGRID2_3_Wave2 pidGRID2_4_Wave2 pidGRID2_5_Wave2 
  /MISSING LISTWISE 
  /ANALYSIS pidGRID2_1_Wave2 pidGRID2_2_Wave2 pidGRID2_3_Wave2 pidGRID2_4_Wave2 pidGRID2_5_Wave2 
  /PRINT INITIAL EXTRACTION ROTATION
  /CRITERIA MINEIGEN(1) ITERATE(25)
  /EXTRACTION ML
  /CRITERIA ITERATE(25)
  /ROTATION VARIMAX.
FACTOR
  /VARIABLES pidGRID4_1_Wave2 pidGRID4_2_Wave2 pidGRID4_3_Wave2 pidGRID4_4_Wave2 pidGRID4_5_Wave2 
  /MISSING LISTWISE 
  /ANALYSIS  pidGRID4_1_Wave2 pidGRID4_2_Wave2 pidGRID4_3_Wave2 pidGRID4_4_Wave2 pidGRID4_5_Wave2 
  /PRINT INITIAL EXTRACTION ROTATION
  /CRITERIA MINEIGEN(1) ITERATE(25)
  /EXTRACTION ML
  /CRITERIA ITERATE(25)
  /ROTATION VARIMAX.

*Table A7a and A7b (coefficients for Figure 1)

WEIGHT BY WEIGHT.

USE ALL.
COMPUTE filter_$=(eurefid2W2<3 & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexattachAllW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER eurefid2w2dum1 .  

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexINW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER eurefid2w2dum1 .  

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexOutW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER eurefid2w2dum1 .  

COMPUTE filter_$=(partyid2W2<4  & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDattachAllW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER partyid2W2dum1 partyid2W2dum2.  

COMPUTE filter_$=(partyid2W2<3  & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDINW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER partyid2W2dum1 .  

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDOUTW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER partyid2W2dum1 .  

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDNegAllW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER partyid2W2dum1 .  


*Table A7c 
 
USE ALL.
COMPUTE filter_$=(eurefid2<3 & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexattachAll
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER ageW1 male edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 eurefid2dum1.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexIN
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER agew1 male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 eurefid2dum1 . 
 
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexOut
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER agew1 male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 eurefid2dum1 . 

COMPUTE filter_$=(partyid2<4  & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDattachAll
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER agew1 male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER partyid2dum1 partyid2dum2.  

COMPUTE filter_$=(partyid2<3  & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDIN
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER agew1 male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 partyid2dum1 .  

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDOUT
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER agew1 male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 partyid2dum1 .  

*Appendix 8 (footnote 12)

USE ALL.
COMPUTE filter_$=(eurefid2W2<3 & wave1=1).
FILTER BY filter_$.
EXECUTE.
GLM BrexInW2 BrexOutW2 WITH narqscale neuro agree cons extro opentoe
  /DESIGN=narqscale neuro agree cons extro opentoe 
  /PRINT PARAMETER
  /LMATRIX narqscale 1
  /MMATRIX ALL 1 -1.

COMPUTE filter_$=(partyid2W2<4  & wave1=1).
VARIABLE LABELS filter_$ 'partyid1W2<4 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.
GLM PIDInW2 PIDOutW2 WITH narqscale neuro agree cons extro opentoe
  /DESIGN=narqscale neuro agree cons extro opentoe 
  /PRINT PARAMETER
  /LMATRIX narqscale 1
  /MMATRIX ALL 1 -1.
GLM PIDattachAllW2 PIDNegAllW2 WITH narqscale neuro agree cons extro opentoe
  /DESIGN=narqscale neuro agree cons extro opentoe
  /PRINT PARAMETER
  /LMATRIX narqscale 1
  /MMATRIX ALL 1 -1.
 

*Appendix 9 (coefficients for Figure 2)

WEIGHT BY WEIGHT.

USE ALL.
COMPUTE filter_$=(eurefid2W2<3 & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexattachRW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2 .  
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexattachLW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2 .  


COMPUTE filter_$=(partyid2W2<4  & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDattachConW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2.  
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDattachLabW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2.  
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDattachLDW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2.  

USE ALL.
COMPUTE filter_$=(eurefid2W2<3 & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexRINW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2 .  
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexLINW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2 .  


COMPUTE filter_$=(partyid2W2<3  & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDConINW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2.  
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDLabINW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2.  

COMPUTE filter_$=(partyid2W2<3  & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDnegConW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2.  
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDnegLabW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2.  

USE ALL.
COMPUTE filter_$=(eurefid2W2<3 & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexROutW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2 .  
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexLOutW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2 .  

COMPUTE filter_$=(partyid2W2<3  & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDConOutW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2.  
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDLabOutW2
  /METHOD=ENTER narqscale neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER lrscaleW2 alscaleW2 euscaleW2 npscaleW2.  


*Appendix 10 (coefficients for Figure 3)   
    
WEIGHT BY WEIGHT.

USE ALL.
COMPUTE filter_$=(eurefid2W2<3 & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexattachAllW2
  /METHOD=ENTER rivalry admiration neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER eurefid2w2dum1 .  

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexINW2
  /METHOD=ENTER rivalry admiration neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER eurefid2w2dum1 .  

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT BrexOutW2
  /METHOD=ENTER rivalry admiration neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER eurefid2w2dum1 .  

COMPUTE filter_$=(partyid2W2<4  & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDattachAllW2
  /METHOD=ENTER rivalry admiration neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER partyid2W2dum1 partyid2W2dum2.  

COMPUTE filter_$=(partyid2W2<3  & wave1=1 & edqual<99).
FILTER BY filter_$.
EXECUTE.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDINW2
  /METHOD=ENTER rivalry admiration neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER partyid2W2dum1 .  

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDOUTW2
  /METHOD=ENTER rivalry admiration neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER partyid2W2dum1 .  

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT PIDNegAllW2
  /METHOD=ENTER rivalry admiration neuro agree cons extro opentoe  
  /METHOD=ENTER age male  edqualdum1 edqualdum2 edqualdum3 edqualdum4 edqualdum5 racedum1 racedum2 racedum3 incomedum0 incomedum1 incomedum2 incomedum3 incomedum4 
                                     chattenddum1 chattenddum2 chattenddum3  tudum0 tudum1 tudum2 sclass1dum0 sclass1dum1 sclass1dum2 sclass1dum3 sclass1dum4 sclass1dum5 sclass1dum6 
  /METHOD=ENTER partyid2W2dum1 .  


*Appendix 11

RECODE expttreat (0=0) (1=1) (else=99) INTO treatment.
VARIABLE LABELS treatment 'Expt treatment'.
VALUE LABELS treatment (0)Positive (1)Negative (99)Missing.
EXECUTE. 

RECODE didtask (1=0) (else=1) INTO didtask1.
VARIABLE LABELS didtask1 'Response check'.
VALUE LABELS didtask1 (0)Failed (1)Passed (99)Missing.
EXECUTE. 
 
COMPUTE PidattachConW2expt = 6- ((expt3_con_1_wave2+expt3_con_2_wave2+expt3_con_3_wave2)/3).
VARIABLE LABELS PidattachConW2expt 'Con Pid attachment scale W2 expt'.
VALUE LABELS PidattachConW2expt (1)Not attached (5)Very attached (99)Missing.
EXECUTE.
COMPUTE PidattachLabW2expt = 6- ((expt3_lab_1_wave2+expt3_lab_2_wave2+expt3_lab_3_wave2)/3).
VARIABLE LABELS PidattachLabW2expt 'Lab Pid attachment scale W2 expt'.
VALUE LABELS PidattachLabW2expt (1)Not attached (5)Very attached (99)Missing.
EXECUTE.
COMPUTE PidnegConW2expt = 6- ((expt3_con_4_wave2+expt3_con_5_wave2+expt3_con_6_wave2)/3).
VARIABLE LABELS PidnegConW2expt 'Con neg Pid scale W2 expt'.
VALUE LABELS PidnegConW2expt (1)Not negative (5)Very negative (99)Missing.
EXECUTE.
COMPUTE PidnegLabW2expt = 6- ((expt3_lab_4_wave2+expt3_lab_5_wave2+expt3_lab_6_wave2)/3).
VARIABLE LABELS PidnegLabW2expt 'Lab neg Pid scale W2 expt'.
VALUE LABELS PidnegLabW2expt (1)Not negative (5)Very negative (99)Missing.
EXECUTE.

COMPUTE PidattachAllW2expt =  PidattachConW2expt.
VARIABLE LABELS PidattachAllW2expt 'All attach Pid scale W2 expt'.
VALUE LABELS PidattachAllW2expt (1)Not attached (5)Very attached (99)Missing.
EXECUTE.
DO IF SYSMIS (PidattachAllW2expt).
COMPUTE PidattachAllW2expt =  PidattachLabW2expt.
END IF.
EXECUTE.

COMPUTE PidnegAllW2expt =  PidnegConW2expt.
VARIABLE LABELS PidnegAllW2expt 'All neg Pid scale W2 expt'.
VALUE LABELS PidnegAllW2expt (1)Not negative (5)Very negative (99)Missing.
EXECUTE.
DO IF SYSMIS (PidnegAllW2expt).
COMPUTE PidnegAllW2expt =  PidnegLabW2expt.
END IF.
EXECUTE.

WEIGHT BY WEIGHT.

USE ALL.
COMPUTE filter_$=(partyidW2<3 & didtask1 = 1).
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

UNIANOVA PidAttachAllW2expt WITH neuro agree cons extro opentoe admiration rivalry treatment BY partyidW2
  /METHOD=SSTYPE(3)
  /INTERCEPT=INCLUDE
  /PRINT PARAMETER
  /CRITERIA=ALPHA(.05)
  /DESIGN=  neuro agree cons extro opentoe admiration rivalry treatment  treatment*admiration treatment*rivalry partyidW2.
UNIANOVA PidnegAllW2expt WITH neuro agree cons extro opentoe admiration rivalry treatment BY partyid2W2
  /METHOD=SSTYPE(3)
  /INTERCEPT=INCLUDE
  /PRINT PARAMETER
  /CRITERIA=ALPHA(.05)
  /DESIGN=  neuro agree cons extro opentoe admiration rivalry treatment  treatment*admiration treatment*rivalry  partyid2W2.


